package com.glory.brepda.adapter;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.glory.brepda.R;
import com.glory.brepda.entity.LotInfoEntity;

import java.util.List;

import androidx.annotation.Nullable;

/**
 * FileName: LotShelvesLotInfoAdapter
 * Author: XJH
 * Date: 2020/8/6 14:05
 * Description:
 * History:
 */

public class LotInfoBindAdapter extends BaseQuickAdapter<LotInfoEntity.LotBean, BaseViewHolder> {
    public LotInfoBindAdapter(@Nullable List<LotInfoEntity.LotBean> data) {
        super(R.layout.adapter_lotbing, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, LotInfoEntity.LotBean s) {
        helper.setText(R.id.tvLot,s.getLOTID());
        helper.setText(R.id.tvLotQty,s.getMAINQTY());
        helper.setText(R.id.tvLotState,s.getSTATE());
    }
}
